package com.gp.testonline.dao;

import com.gp.testonline.eo.TeacherEOPage;
import com.gp.testonline.model.Teacher;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/*
 *操作数据库方法的对接
 */
@Mapper
public interface TeacherMapper {
    //添加教师信息
    int insertTeacher(Teacher teacher);

    //更新教师信息
    int updateTeacher(Teacher teacher);

    //删除教师信息
    int deleteTeacher(Integer tid);

    //通过教师编号获取数量
    int getTeacheridCount(String teacherid);

    //根据条件获取相关信息
    List<TeacherEOPage> getTeacherAll(TeacherEOPage teacherEOPage);
}
